package cn.xhh.dailyreview.client;

import java.util.List;

import cn.xhh.dailyreview.client.utils.Result;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ServiceAsync {
	
	void login(String loginId, String passwd, AsyncCallback<Result> ac);

	void checkLogin(AsyncCallback<Result> ac);

	void logout(AsyncCallback<Result> ac);

	void saveReview(List<String> reviews, AsyncCallback<Boolean> ac);

	void submitRegistration(String email, boolean force, AsyncCallback<Result> ac);
	
	void submitForgotPasswd(String email, AsyncCallback<Result> ac);

	void checkSetup(String email, String code, AsyncCallback<Result> ac);
	
	void setupUser(String email, String encrPasswd, AsyncCallback<Result> ac);

	void getUserEmail(AsyncCallback<String> ac);
}
